database update and card payment