thumbnail Bulk inserting on table with foreign key field - Stack Overflow