Added global  to handle wordpress installations that do not use wp_ as the database prefix