Small modifications to prepared queries