add sql and http tool and fix error