Catch database not found exception.