Update Merging_Code

Actual code used to merge databases.