Ajax query to db added