Improved checking (corrected full path).
Fixed error on loading database check.