Change the model to use a 3-level change order, and use a dialect selection for raw sql.