repaired inserting in database for checkbox fields