fix error in example from copyDatabase tutorial