Translated DB::checkRun(), checkRun SQL query, and updated DB::getRunList()