db persistence added for users and posts