Added improved database checks to .conf file checking script