change to autosend from sql table