Fix for Instance entry not getting updated with pid in DB