Enabled modification of packages
Made the json more resilent against database changes.