added relations between users and posts in the database