add filtering to rivers controller

This PR is the backend update to make pagination work on the frontend app