Set timeout for mongo connection