Removing insert queries