This is an old post and I no longer do things like this, meaning I no longer copy data in the database between environments. The original code I posted does not alter saved values, it only alters a value before it is displayed. There is no efficient way to alter the saved values on multiple sites other that a db search and replace tool that deals with serialized data correctly (like the one you mentioned).
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users