externalise sqls for document migration
avoid code duplication, make v6.1.0 extends v6.0.2