updates database connections