Beautify and add "empty database" handling to the page.