Establishing Database Connection in Posts Model. Will likely change this.