Added saving of database when packing is done
Added draw polygons option