Changed DB interface

Completed the integration of the database into the home page and
improved the GUI.
Merge pull request #1 from fred3m/new_db_interface

Changed DB interface