repackage + sql