added table prefix support to recent updates

added table prefix support to more recent changes, most of the module
already had the correct syntax