Prevent duplicate tasks being placed in the DB