fix checkbox and add sql data