send SQL commands by ajax