Im trying to create an oauth provider in flask using mongoengine, there are a lot of great tutorials for oauth using sqlalchemy but i am having trouble incorporating mongoengine in place of it. Anyone have experience with both database engines? or atleast explain what is happening in the sql on this code https://github.com/lepture/example-oauth2-server