! Fix some bugs with MySQL engine support (fixes #2616)

Signed-off-by: Michael Eshom <oldiesmann@oldiesmann.us>