Updated database.php config to use environment variables