Try to use the method created ... re #127
Simplify a little the code to get the title of the search page. re #127
Properly use constants. re #127
Refactor the detection of the case when no database has been selected. re #127