- added throw err while fetching db data