Added a db.seed and tidied up some problems with the models.