Updated table insertion in database