switch DB settings to env vars