changed pointer and update db samples