Hash json to see if its already in the db