Fixed redirect loop.
Protected against SQL-injection.
Added 'done' amount of pages to admin screen.