changed from in-memory sqlite database to file-based