buying items updates sql DB