Added api for copy db tool