Added logic for retrieve row by id task.