More work on /copydatabase