Produces an ETL template for tranferring data between tables of different databases. The tables are ascendingly ordered by a number of foreign keys.