write db-transfer