this is nitpicky, I know, but this is really hard to read. 

I would thinks something like this to be more readable:

```go
err = db.QueryRow(`
INSERT INTO classes (name, uid, students)
VALUES($1, $2, $3)
RETURNING cid`,
j.Name, user.Uid, string(st))
.Scan(&cid)
```

try and let me know!