Implemented range search for BTrees. Will try to figure out how to do it for
hash tables, as it appears functions like database.first() and cursor.next()
are meaningless, as order is random.