save response to db