Changed Puts to Appends to avoid overriding information in the JOIN
table (writes with the same ts could appear)