add sql support