Added persistent key-value store on db

Signed-off-by: Andrei Thorp <athorp@evernote.com>