Move database configuration to .env files