changes in backend messages query