ok, at least i fixed the category listing error, just create a new field called category_count in wp_categories and then assign each category the value from 0,1,2…to the end…
but for the permission error, i still had no luck, i even added the wp-usermeta table manually.