event updating talks to db with ajax