copy_db function

Copy (a subset of) a database to another database