added post model and migrations, and updated posts controller and views