database and model started using scaffolding and paperclip.