change to get only active request

remove the call which gets all the request from database.