bug-18009: reworking jaldb_tail to work with new APIs
bug-18794: Adding unit tests for jaldb_get_last_k_records and
jaldb_get_records_since_last_sid