Fixed SQLite throwing AbstractMethodErrors because I forgot to check
that MySQL was being used before using isValid.