Saves the arraylist of guests into the db