#73: Convert CID to SQL statements
* implemented method as_sql for RegExFieldFormat, PatternFieldFormat and TextFieldFormat