Move all SQL's to database DefaultDialect class and its extended classes.