updated to use sqlite driver