added useSchema in sql building