alter some logic of return last id for insert a new row.
bet and drawCard