fixes MySQLDDL template (missing join, missing toList, wrong map, missing parameter) and adds integration test