updating database connections