Refact method to save json to database for fixtures