Pass database connection to network id allocation/freeing