instances for lazy ByteString
refactor keyDbName initialization