added navigation and connection to the database

added navigation and connection to the database