Moving db to SQLAlchemy declarative