Bugfix/Fix view functions

* remove outdated views that cause errors 
* only emit pgp keys if they are actually set