added getCollection and collection for direct database access (remove postgre check)