Initial version of JAM database-controlled driver script.