Fixed bug in table prefixing
Prefixed all WordPress related global variables with WP_