Schema improvement, view functions, and template beginnings.