Fix for deprecated leveldb queries using start and end
* Replaced start and end with gte and lte respectively
* Fixes tests.