Changed query to use string instead of object

#119