Handling no data returned exception
Handles no data returned from db case