Adding support for commands that retrieve the records in the all-link
database; also added logging of failure in the run loop