ui: Avoid some duplicating in showdb.html.ep