refined db audit trail notebook. better commenting and variable names