first connection to the database through the gui