added card model, view and controller

database.yml should be in .gitignore file