Add retries for local mongodb connection (for Travis-CI)