made condition fields optional to have a unique field over a table