rqt was designed to allow you to rapidly throw together a GUI for your ROS-based robot. It already has a bunch of plugins written for it, so you don't have to reinvent the wheel. I don't know if there's a plugin for connecting to databases, but you could always write one.