Create new db UUIDs after -replaceDatabase… call

Otherwise every instance of the app will have the same UUID for its database,
which then creates tons of conflicts storing checkpoints on a remote db server.
Fixes #145