check engine dialect and truncate table names