Retrieve categories from RavenDB