Add sql query snippet