sqlalchemy function all() was added to all select queries