Return code in database.addSale were incorrect