updated favorites query to filter results based on current user