Modularized pagination functions

Pagination stuff has been set up across the current
pages in the admin panel
Unchecking Category when editing Entry now updates db