Added update function to DB handler