made changes to post controller
adding database schema