Changed using sessions
Added post reference to Media
Remove Media dependent on Post. Done