Fixed wrapping of INSERT statements