Reduced the number of open files for leveldb
Fix for memory in _bget_records as pointed out by Alfred
Added latest changes from mdhim/mdhim-tng