add table prefix setting

in preparation for moving tables to main DB