add keys function for pg hstore support