api/healthcheck: ping mongodb before saying that everything is ok