Remove hardcoding, purchases table works