modified inserts.js to store timestamps