Setting up posts model and associations