use sqlite effectively