Connection to database created and first insert