implement sqlite db system