Updated database setting to detect when on Heroku or Local Machine