Update rails version and .gitignore

Update the rails version to 3.2.14 and update .gitignore to ignore the databse.yml file.