updating database.yml to include host: localhost in test and stats mode