fixing database config (using ERB for environmental variables)