created posts controller, posts table