Main template renamed to admin. Page method added. Template table SQL added.