Mass assignment role

Added a mass assignment role for the creates occurring in the db. Also added some indices to the db, added the right dependencies and a gemfile. All in separate commits so you can pick what you like.