Fixes a silly bug where retriving n rows actually retrieved n*n rows. Funny part, it had some impact in Slick, it still ran in less than a minute while JPA I had to manually stop after a 5 minutes and it was still retriving 2000 rows.

Future advice for Eclipselink: don't reuse the EntityManager. It horribly hurts the performance.