Removed whitespace, fixed sqlalchemy condition