fix the view database links as well