database.py recommended by SQLAlchemy docs
reverted from database errors to e314623