edit sql
compat with module CGI