* stop when there is nothing else to do
* make sure package 0 is also processed
take care of package 0
Merge branch 'insert'

Complete redo of the insert functions. It now writes basically everything (I hope). However, some things (sparse types, subobjects) cannot yet be read from the database.
Merge branch 'master' into update
taking care of remove properties in update
Merge branch 'update'
forgotten bracket in copy_properties
moved perllib into application common
Merge branch 'master' into insert