Make queries compatible with both tables format (before and after update) by simply searching on message or params.