Added ToList to the first query, got it working, slowly

Will need to speed the shit out of it though.