Dependency graph based dump and reload of PostgreSQL DDL