bugfix: view definition contained hard coded database