Added database checking route