setup database connections