Update sample and database