Adding initial support for execution plans, as well as hardening MySQL transactions