user can view posts from db