fix: portable db usage for tiny and levelup. other misc fixes. fixes #1.