Fix new field error and add new SQL to installer