Query support for mapdb