bug fix and addition of posts table