Replace deprecated method to check is database is valid during install