Added support to alternate table prefix within PIPs

Fixes #1195