[code] use a dedicated table to store pp to wp ids