extractDbData function

Extract DB Data