data dump and retrive from db