fix on db.c scecondi.c e scatti.c