updated to correct an error in dbmng_update function