first connection with the db