Checks the database to see if the given value is unique. Can
ignore a single record by field/value to make it useful during
record updates.

Example:
is_unique[table.field,ignore_field,ignore_value]
is_unique[users.email,id,5]

@param string $str
@param string $field
@param array  $data

@return boolean