eager loading executing the right number of sql statements