insert message returns latest ID for later usage