bug-17930: Adding common function for inserting a JALoP record into the primary DBs