updating server-database connection