Use newer query format for hstore query

The older query method has been deprecated from latest version of PostgreSQL(being used on Heroku). So use the newer method which is also functional with older version.