add sql support

add sql support