mongodb connection and basic layout setup.