added method query.errordb.getMetaData() to return a list of metadata documents