Add indexing for DB1 and image.