setup SQLite to persist rotate db state