Adding an attachment gives a db error (no default for thumbnail)

Signed-off-by: emanuele <emanuele45@gmail.com>