Update timestamps in one sql query instead of two

Also sets updated_at on restore

//CC @dasch @bastien 
yes!