port prepSqlWithExt back to DbRecord