add persistence for posts
fixed issues and tested