Fix trying to insert Python datetime objects into the dob field which is of type date