Creates a in memory database for given Product and queries jsons as input file.