Fixed bug in db model

Flush of the database session must happen in the view. The create
constructor permits construction of the Sample without certain mandatory
fields (e.g. description) which can be filled in later by form binding.
If the flush is attempted before the mandatory fields are filled, an
IntegrityError will result.