Remove unused MongoDB client
Handle missing database more gracefully