Use table for associations.

Fixes #43.