   @delete = (docName, dbMeta, callback) ->
     sql = """
       DELETE FROM #{operations_table}
-      WHERE "doc" = ?
+      WHERE doc = ?
     """
     values = [docName]
     client.query sql, values, (error, result) ->
       if !error?
         sql = """
           DELETE FROM #{snapshot_table}
-          WHERE "doc" = ?
+          WHERE doc = ?
         """
         client.query sql, values, (error, result) ->
           if !error? and result.length > 0

    sql = """
      UPDATE #{snapshot_table}
      SET ?
      WHERE "doc" = ?
    """
    values =
      v:        docData.v

      snapshot:   JSON.stringify(docData.snapshot),
      meta:       JSON.stringify(docData.meta),
      type:       docData.type,
      created_at: new Date
    client.query sql, values, (error, result) ->
      if !error?
        callback?()
