More fix for getCurrentDateSQL