Added some more error checking.

Interface: Modified databases so they track status.
Status is shown by database button color in the UI.