DB data storage change plus bug fix

Changed agent fields to store as json object vs. serialized array.
Upgrade will automatically convert all existing data to json.
Also, fixed query to match statement actor to previously stored actor
based on mbox or mbox_sha1sum.