Reduced SQL queries to one with eager loading