Add getTask method to DBTask