working parsing json into database. working selection of categories and content