Use implicit return in query_object
Simplify raw_search
Make conditions empty hash instead of nil by default
Fix condition in find_or_fail check