Add FK constraints. Fix #21