make getNamespaces() and getDatabases use bulk fetch