changed db-connection to sqlalchemy