Initialize and test MongoDB