Handle sqlalchemy errors to not expose the query.  Return the created or updated user in views/users.py.  Refactor and clean up server.py