move persistence to sqlite for better concurrency support