parsing prepare and execute statements