Fixed a couple of bugs from scaffolding the tables

This commit just fixed some of the problems that came up when using
scaffolding on the database tables.  Mostly this was just fixing the
departments scaffolds.