Flask server with basic OpenID login, templates, and postgresql backend