creating functionality to find recent wagers and courses for users in the dashboard view