User class now uses sqlalchemy