receive samples and update database