Generated scaffolding and set up postgresql to work with Cause object.