Wait for mongodb to start