Fixed task_id to sample_id in database.py