Implemented to-client replies for database

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