Added DB calls. convert.html lists events from event table