correcting for strict mysql mode