added database connectivity to clustering file