receive events from server

add received_at column
update record content after sending it