switched it up to sqlalchemy