Refactoring of admin. Better support of pagination in all listings
Improve the database accessing by using separate count queries