Add some logging for records being added and deleted
get_record_from_id uses 'prio' not 'priority'
Log editing of records