posta il codice che non funziona, quello che dovrebbe scrivere nel db