removed (int) from thumbnail_id on insert and update to work with 2.2