trying to find right place to put the db write for a sale. this seems to
be the best place