changing mongoid to get configuration from environment variables