mongodb: accessing tables directly is deprecated