Use database.yml
.gitignore database.yml
Add some debugging