Adding DB / Table checking for duplicates