Added the update function for prd & repos