Made getMaxLag() skip checking the master DB