ensure mongo has a connection