Attempt to correct error when using flask-sqlalchemy.