Add timestamp when storing operation

First part of the fix. Second part (once the migration on TC and this fix have been deployed) will be to modify the deleteOps method to delete only operations older than a certain time.