database error handling; onDuplicate SqlBuilder statement added