Adding sql for Kopps course table to json as well as sql function to escape data for json.