return 500 error when DB issue in tasks/index