prepare-execute of query merged to single execute