Fixing checkIfDatabaseHasChanges and checkIfTablesHasChanges when there
is no connection