Updated database setting to use env variable and updated relative doc

Updated database config to use env var

Updated docs
Updated .gitignore
Merge branch 'database_config'