To use the new dynamic library with your existing custom scripts, set the following global variable as shown:
LD_LIBRARY_PATH=libdb-4.2.so