Add functionality for prepared statements WIP: ps' need to be added to queue of QuerySegments for replay rather than being executed on-the-fly during the replay phase