dbInfo

Added a database info button and fixed some bugs. Also made it more
redundant should things change.