Insert the session and return the row id