added database.yml to template
some changes