Ping mongodb every x seconds to prevent disconnections