Fixed bad base sql.
Moved Template tab into Properties tab in Pages.