Fix MySQL migrations and backend tree loading issues

Fixes Issues U4-3783 and U4-3780.  Corrects problems that prevent database migrations to 7.0.0 from working with MySQL databases.  Also fixes field bracketing issue that prevented content trees from loading in backend on MySQL.