     deleteOne: () -> @doOne(@_delete, arguments, 'delete')
 
     _delete: (predicate, cb) ->
-        s = sql.delete(@sqlAlias(), predicate)
+        s = sql.delete(@sqlAlias, predicate)
         return @db.bindOrCall(s, 'noData', cb)
 
     doOne: (fn, args, opName, queryArgument) ->

        @_update(keyValues, cb, updateValues)

    _update: (predicate, cb, values) ->
        s = sql.update(@sqlAlias(), values, predicate)
        return @db.bindOrCall(s, 'noData', cb)

    deleteMany: (predicate, cb) ->
        s = sql.delete(@sqlAlias()).where(predicate)
        return @db.bindOrCall(s, 'noData', cb)

    count: (cb = null) ->


        @schema.demandInsertable(values)

        q = sql.insert(@sqlAlias, values)
        return @doOutputQuery(q, cb)

    upsertOne: (values, cb) ->
