Fixed the issue with checkboxes not displaying whether or not they were true or false in the database.
Untested fix to make checkboxen work as they should.
fixed date fields when no date supplied from record