add relations and basic blog functionality