test and try to find the best way to operate sqlite db.