remove unused function
use comma instead of semi-column as csv delimiter
separate query by a semi-column not a comma
import date / datetime module, for time format