Update /copydatabase command.
Fix potential lockup on startup.