fixed checked=checked to be selected=selected in select boxes
fixed boolean-type checkboxes to have a value of 1 by default
added ‘id’ to single’s options to make it an update form, rather than an insert form