Database interface functional with SQLAlchemy