added sql and ducs