Almost finished with database check box functionality