Fix migration scripts. Properly fill networkelement fk to wastewater structure