Log update/select/insert queries separately.