it gives me a link to a dmg of version 4.0beta1.
So where is the final version 4 release?
I don’t know where you got this idea but the announcement clearly states this is a beta, not the final release.
And you don’t do anything with the old version at this time.
Read this: READ ME – Running the DEVONthink 4 Beta ?