DATETIME field is not put within quotes when inserting data into table