Skip queryname in preparequeries, if not passed