add foreign key on posts table