Actually it's only the views that have this problem. The funcitons have keptthe original table name which is now the name of the view.