   @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 = """
      SELECT *
      FROM #{snapshot_table}
      WHERE "doc" = ?
      ORDER BY "v" DESC
      LIMIT 1
    """
    values = [docName]

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