Started to add support for PREPARE and EXECUTE.

I could not figure out how to get this done, but made some improvements.