MB-12439 Implement PREPARE statement