Add a unique constraint on pie (user_id, title)