Fix issue #120

A proposed fix for issue #120: actually convert JavaScript Date objects in a string with a datetime format accepted by MySQL.