fix audit log format

...and remove unused references to DB