mulitple db connection fix