Fixed problem where datetime was not allowed to be null on insert