bug-17993: Adding code to get the 'next' record from the DB
bug-17993: re-working jald to work with new DB APIs
bug-17993: Adding call to subscriber callback for 'on_record_complete'
bug-17993: unit tests for get_next_unsynced record