added some sqlalchemy work