[mysql]: unified query generation process, added ability to include reference type fields, accessor type connections of many-to-many