bind backend fixes

fixes #1665, #1699, #1122
but after this pull lmdb backend needs additional reload magic.