Change how the empty topics query works so that it can be used on every DBMS
Check that the specified target topics exist before updating the posts