Changed #get_db_data to display error messages inline

...instead of a the top of the page, to match the way #get_web_data
already does it, mostly. Also got #get_web_data to display errors inline,
when using the XML format.

Change-Id: I4cbe1aff2f7a5554cddd2f601b044372871556b0