set relationships for posts, users and likes