def timestampID(db, table):
 t = intTime(1000)
 while db.scalar(('select id from %s where id = ?' % table), t):
  t += 1
 return t

def timestampID ( db , table ) : t = intTime ( 1000 ) while db . scalar ( ( 'select id from %s where id = ?' % table ) , t ) : t += 1 return t
return a non-conflicting timestamp for table .