Un-hardcoded db extension

In my .kv branch, I use a different one
Ported db to cznic/kv
Don't smear the transaction over the writer loop