next step, ajax write to db