various more database stuff, also views and controllers
various unordered database changes. Also planning for the submission behaviour DSL.