Added ignore_duplicate_key_error option