Add dump of SQL queries to post-update log