add method for cloning database