modify query for fetching membership billing