allow the user to buy and query the billiard balls he/she owns in the online store with MySQL