Update model.php as class instead of function
updated list
updated show, delete and edit post
remove whitespaces
Remove useless coding
edited Model
Updated some issue for it