cleanup
sub of conversion to flask-sqlalchemy
moving to sqlalchemy
migrate to flask-sqlalchemy cleanup