Refactoring DatabaseConnection and ServerConnection to reference underlying MongoDB State