Another good idea might be to make the names of you checkboxes match the field names in your db. That would slightly reduce the code needed to create the statement.
Please excuse the second post but I don't know how to update it. Perhaps someone can tell me?