added getCollection and collection for direct database access