add saving of thumbnail details to db