Added database for posts with edit and show all functionality