save page template, working on updating db