Logging of SQL update query