Use base_prefix instead of prefix
Merge pull request #2393 from jamesgol/tableprefix

Use base_prefix instead of prefix