Updated the database merge tool