(#114) - add test for compaciton of empty db
(#567) - add test
(#567) - fix http adapter
(#567) - fix idb