using local storage to save previous success connection dsn