add table thumbnail to db