edit Purchases table in DB