Update get name function and add json_to_hstore function