Moved SQLAlchemy from manual/classic approach to declarative approach