Update to Replace DB

The script now replaces DB and connection string.

NOTE: Only need to write to the file once after replacing all variables.

NOTE: Could use some cleaning up of the logic, there is no need to use
the IF instr statement since we are no longer reading line by line. Will
revise the logic once all functionality is working.