convert to use SqlLite as data store