adding prepared queries