Fixed the hstore issue

If hstore is set to "no" or undefined an error will occur. A suggested solution is to use a when on hstore