Server stores food and restaurant info into DB if newly encountered on GET.
Reformatted code