fixed check boxes and part of db