// Add an item to the deleted table
public void addDeletedItem(String guid, String type) {
if (exists(guid,type))
return;
NSqlQuery query = new NSqlQuery(db.getConnection());
query.prepare("Insert Into DeletedItems (guid, type) Values(:guid, :type)");
query.bindValue(":guid", guid);
query.bindValue(":type", type);
if (!query.exec()) {
logger.log(logger.MEDIUM, "Insert into deleted items failed.");
logger.log(logger.MEDIUM, query.lastError());