Add timestamp storage and display to server-side code