Refine database.yml template

There should be two configuration options for database.yml. Either
configuring with attributes or configuring with data bags this makes
those two choices a bit more clear and prevents a bug that causes the
chef run to fail when the database databag attribute isn't defined.
Merge pull request #7 from opscode-cookbooks/no-database-attribute

Refine database.yml template