increment codes_used after create