Moved database connectivity to SQLAlchemy for database protability and clean object model