General query interface to MbrDB