Add foreign keys to Posts and Topics in the DB