switch from gdbm tosqlite. fix race with Maildir toc refresh