Add hstore querying

This fixes #1456.