third try at adding direct hook
fix
get column name right
re-plumb for new check mechanism
rm unused line
fix query
reformat error message
add oldest comparison
smarten error message
guard against missing organisation code
give better error message
add missing bit of DB model
Merge branch 'record-package'