Compatibility with Joomla! v3.1
Fixing table prefix on database method