Database module encapsulating sqlite nearly complete