Fixed double logging of UPDATE and DELETE commands.