Update dbReplace to work on temporary file rather than actual backup.

Preserve original DB dumps intact. Only perform search and replace on
tmp file which is subsequently deleted.