Handle database connection errors gracefully.
Handle database query error and no result found gracefully.