Added support for clearing and adding pending via LMDB