# Functions
ExecInsertOrUpdate executes a MySQL "INSERT ..
ExecSingleRow executes a query without returning any rows and verifies that exactly one row was affected.
IsDeadlock returns true if err represents a MySQL deadlock condition.
IsDuplicateEntry returns true if err represents a MySQL duplicate entry error.