triger added for betId because auto increment resets after mysql restars