Delegate persistence code to the model - out of views and controllers.