Store and efficiently retrieve deep ruby hash into postgresql table with hstore field