sync checkbox UI with sqlite db