update functions topupcard and getcarddb