How to prevent insert if same records are present in the table