Updating db calls to use wp_ prefix (fixing error)