started implementing DatabaseDataSetWriter with topological sorting of tables