Improved performance a little bit by doing some in-memory paging.
Started using database pagiing
Added more advanced paging, works really well now.