Refactor config to let DATABASE_URL override database_url