Fixes databases query for postgres for super users.
Cleans tests. Makes title, subtitle and autocomplete texts come from their respective classes rather than from the code that creates the output.
Minor output changes to better reflect foreign key values.