uppdated sql script, working on insertion, edition and deletion of posts