added foreign key to posts table