adjust channel setsize to account for db's max open files

Updated pull request with removed if statement. I also added an implementation of MaxOpenFiles for lmdb and fixed a typo in the rocksdb enging.