Changed DB interface

Completed the integration of the database into the home page and
improved the GUI.