print("OUT1")
cursors = db.cursor()
cursors.execute("SELECT numb FROM gpio WHERE type='out' and value=1")
dataa = cursors.fetchall()
for rowc in dataa:
idlegs = rowc[0]
GPIO.output(idlegs, 1)
print("set OUT", idlegs, "= 1")
print("OUT0")
time.sleep(1)