update users and posts table