working on sqlite db