fixing authorization error on index
including id in json
selecting by creation and update times