function removing fix reference to table prefix wp_
 added function get_user_purchases to retrieve user purchases